const envir = import.meta.env.MODE;

//1_api base地址
enum URL_TYPR {
  BASE_URL_DEV = 'http://codercba.com:1888',
  BASE_URL_PRO = 'http://codercba.com:1888', //正式
}

let BASE_URL: URL_TYPR;
switch (envir) {
  //pro 分支是正式 //DEV
  case 'development':
    BASE_URL = URL_TYPR.BASE_URL_DEV;
    break;

  default:
    BASE_URL = URL_TYPR.BASE_URL_PRO;
    break;
}
//2_timeout
const TIME_OUT = 3000;

export { BASE_URL, TIME_OUT };
